import instance from './interceptors'

export const getUsers = () => {
    return instance.get('/api/users/getUsers');
}

export const getUsedUsers = () => {
    return instance.get('/api/users/getUsedUsers');
}

export const addUser = (data) => {
    return instance.post('/api/users/addUser',data);
}

export const editUser = (data) => {
    return instance.post('/api/users/editUser',data)
}

export const deleteUser = (data) => {
    return instance.post('/api/users/deleteUser',data)
}

export const userLogin = (data) => {
    return instance.post('/api/users/login',data);
}

export const getMoney = (data) => {
    return instance.post('/api/users/getMoney',data);
}

export const reducePrice = (data) => {
    return instance.post('/api/users/reducePrice',data);
}

export const addPrice = (data) => {
    return instance.post('/api/users/addPrice',data)
}

export const getUser = (data) => {
    return instance.post('/api/users/getUser',data)
}